<template>
    <div class="front-padding">
        <div class="widgets bg-white">
            <div class="btn-group left">
                <el-button type="danger">作废</el-button>
                <el-button type="warning">发邮件</el-button>
                <el-button type="success">发微信</el-button>
                <el-button type="primary">发QQ</el-button>
            </div>
            <div class="btn-group right">
                <el-button type="info">刷新</el-button>
                <el-button type="danger">删除</el-button>
                <el-button type="primary" @click="changeStatus(3)">保存</el-button>
                <el-button type="success">补单</el-button>
                <el-button type="warning">审核</el-button>
                <el-button type="primary">附件</el-button>
                <el-dropdown style="margin-left: 10px">
                    <el-button type="info" size="medium">
                        模板<i class="el-icon-arrow-down el-icon--right"></i>
                    </el-button>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item>导入模板</el-dropdown-item>
                        <el-dropdown-item>存为模板</el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
                <el-button type="info" style="margin-left: 10px">打印标准凭证</el-button>
                <el-button-group class="btn-other">
                    <el-button title="导出">
                        <img src="../../../assets/images/export.png" alt="">
                    </el-button>
                    <el-button title="导入">
                        <el-upload class="upload-demo" :action="$url" :show-file-list="false" multiple style="display: inline-block;">
                            <img src="../../../assets/images/import.png" alt="">
                        </el-upload>
                    </el-button>                 
                    <el-button title="打印">
                        <img src="../../../assets/images/print.png" alt="">
                    </el-button>
                    <el-button title="帮助">
                        <img src="../../../assets/images/help.png" alt="">
                    </el-button>
                </el-button-group>
            </div>
        </div>
        <!-- 表单模板 -->
        <template-form/>
    </div>
</template>
<script>
import templateForm from './templateForm'
export default {
    components: {
        'template-form': templateForm
    },
    data() {
        return {

        }
    },
    methods: {
        changeStatus(n) {
            this.$store.commit('borrowOrderStore/updateMenuStatus', n);
        }
    }
}
</script>